package com.servertrack

import java.util.Date;

class Tur {
	 String title
	 String description
	 Date dateCreated
	
	static belongsTo=[company:Company]
		
	static hasMany=[hotel:Hotel]
	
	static constraints = {
		title(size:2..25, blank:false)
		description(minSize:5, blank:false)
		dateCreated(blank:true)
	}
	
	String toString(){
		return "Tur: ${title}"
	}
	
}


